<?php
/*
 * Trixbox Billing v0.01
 * GNU GPL
 */
require_once("mySQL.php");
require("conf/ru_language.php");
class App extends mySQL{
	public function Cap($section, $title){
		echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
		<html xmlns="http://www.w3.org/1999/xhtml">
		<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>'.$title.'</title>
		<link href="styles/main.css" type="text/css" rel="stylesheet" />
		</head>
		<body id="body">
		<script type="text/javascript" src="js/tooltip/wz_tooltip.js"></script>
		<H1><font color="orange">TrixBi</font>&nbsp;<font color="#959595"><sup>'.$section.'</sup></font></H1>';
	}
	public function printMenu($main, $admin, $rates, $exit, $aMode=FALSE, $return=FALSE){
		if($return){
			return '<table border="0px" id="menu" width="100%"><tr><td><a href="./">'.$main.'</a><a href="admin.php">'.$admin.'</a><a href="price.php">'.$rates.'</a><a href="index.php?logout">'.$exit.'</a></td></tr></table><br><br>';

			/*: '<table border="0px" id="menu" width="100%"><tr><td><a href="./">'.$main.'</a><a href="price.php">'.$rates.'</a><a href="index.php?logout">'.$exit.'</a></td></tr></table><br><br>'; */
		}
		else{
			echo '<table border="0px" id="menu" width="100%"><tr><td><a href="./">'.$main.'</a>';
			/*if($aMode and $_COOKIE['uid'] == 1)*/ 
				echo '<a href="admin.php">'.$admin.'</a>';
			echo '<a href="price.php">'.$rates.'</a><a href="index.php?logout">'.$exit.'</a></td></tr></table><br><br>';
		}
	}
}
?>
